import requests from '@/api/request';

//主页
export const reqGetContentList = (pageNo,pageSize) => requests({ url: `/topics?page=${pageNo}&limit=${pageSize}`, method: 'get' })
export const reqGetContentListTotal = () => requests({ url: `/topics`, method: 'get' })

//获取tab分类内容
export const reqGetTabContent = (changeTab,pageNo,pageSize) => requests({ url: `/topics?tab=${changeTab}&page=${pageNo}&limit=${pageSize}`, method: 'get' })

//详情
export const reqGetDetail = (author_id) => requests({ url: `/topic/${author_id}`, method: 'get' })

//用户详情
export const reqGetUserDetail = (author_loginname) => requests({ url: `/user/${author_loginname}`, method: 'get' })

//用户收藏topic_collect/i5ting
export const reqGetUserCollect = (author_loginname) => requests({ url: `/topic_collect/${author_loginname}`, method: 'get' })